.class public final Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;
.super Ljava/lang/Object;
.source "CustomPlayerUI.kt"


# instance fields
.field private onStart:Lkotlin/jvm/functions/Function0;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lkotlin/jvm/functions/Function0<",
            "Lkotlin/Unit;",
            ">;"
        }
    .end annotation
.end field

.field private sound:Z

.field private final yTPlayer:Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;


# direct methods
.method public constructor <init>(Landroid/view/View;Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;)V
    .locals 1

    const-string v0, "customPlayerUI"

    invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    const-string v0, "yTPlayer"

    invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 12
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput-object p2, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->yTPlayer:Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;

    .line 18
    invoke-direct {p0, p1}, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->initViews(Landroid/view/View;)V

    return-void
.end method

.method public static final synthetic access$getSound$p(Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;)Z
    .locals 0

    .line 12
    iget-boolean p0, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->sound:Z

    return p0
.end method

.method public static final synthetic access$setSound$p(Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;Z)V
    .locals 0

    .line 12
    iput-boolean p1, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->sound:Z

    return-void
.end method

.method private final initViews(Landroid/view/View;)V
    .locals 3

    .line 23
    sget v0, Llt/farmis/libraries/apps_promo/R$id;->soundButton:I

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageButton;

    .line 24
    iget-object v1, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->yTPlayer:Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;

    const/4 v2, 0x0

    invoke-interface {v1, v2}, Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;->setVolume(I)V

    .line 25
    iget-object v1, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->yTPlayer:Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;

    new-instance v2, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$1;

    invoke-direct {v2, p0}, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$1;-><init>(Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;)V

    invoke-interface {v1, v2}, Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;->addListener(Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayerListener;)Z

    .line 66
    new-instance v1, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$2;

    invoke-direct {v1, p0, v0, p1}, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI$initViews$2;-><init>(Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;Landroid/widget/ImageButton;Landroid/view/View;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-void
.end method


# virtual methods
.method public final getOnStart()Lkotlin/jvm/functions/Function0;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lkotlin/jvm/functions/Function0<",
            "Lkotlin/Unit;",
            ">;"
        }
    .end annotation

    .line 15
    iget-object v0, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->onStart:Lkotlin/jvm/functions/Function0;

    return-object v0
.end method

.method public final getYTPlayer()Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;
    .locals 1

    .line 12
    iget-object v0, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->yTPlayer:Lcom/pierfrancescosoffritti/youtubeplayer/player/YouTubePlayer;

    return-object v0
.end method

.method public final setOnStart(Lkotlin/jvm/functions/Function0;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lkotlin/jvm/functions/Function0<",
            "Lkotlin/Unit;",
            ">;)V"
        }
    .end annotation

    .line 15
    iput-object p1, p0, Llt/farmis/libraries/apps_promo/views/CustomPlayerUI;->onStart:Lkotlin/jvm/functions/Function0;

    return-void
.end method
